package com.tencreat.common.enums.account;

/**
 * @author tang jun liang
 * @version 1.0
 * @date 2021/9/6 11:30
 */
public enum AccountLoginTypeEnums {
    /**
     *密码登录
     */
    PASSWORD_LOGIN(1, "密码登录"),
    /**
     * 验证码登录
     */
    CODE_LOGIN(2, "验证码登录");

    AccountLoginTypeEnums(Integer type, String desc) {
        this.type = type;
        this.desc = desc;
    }

    private final Integer type;

    private final String desc;

    public Integer getType() {
        return type;
    }

    public String getDesc() {
        return desc;
    }

    /**
     * 单个枚举的展示
     */
    @Override
    public String toString() {
        return type + "-" + desc;
    }
}
